var windowName = "userVip";
var Page
apiready = function(){
    onWindowShow(function () {
    })
    onWindowHide(function () {
    })
    console.log("index page is OK");
    Page = createVM("#Page",{
        //页面数据
        month:"-"
        ,date:"数据获取中……"
        ,user:{}
        ,code:""
    },{
        //页面方法
        "init":function () {
            getData(this)
            var res = getLocData("shareInfo");
            if (isTrue(res)) {
                Page.user = res.data.user;
                Page.code = res.data.code;
            }
        }
    })
    Page.init()
}

function getData(_this) {
    apiGet("/app/user/share/info",{},function (res) {
        logJson(res.data,"/app/user/share/info");
        setLocData("shareInfo",res)
        Page.user = res.data.user;
        Page.code = res.data.code;
    })
}